package com.zhixing.user.service;

import com.zhixing.user.domain.dto.LoginDTO;
import com.zhixing.user.domain.dto.PasswordDTO;
import com.zhixing.user.domain.dto.RegisterDTO;
import com.zhixing.user.domain.dto.UserDTO;
import com.zhixing.user.domain.vo.TokenVO;
import com.zhixing.user.domain.vo.UserInfoVO;
import com.zhixing.user.domain.vo.UserVO;

public interface UserService {
    TokenVO login(LoginDTO loginDTO);

    void register(RegisterDTO registerDTO);

    UserInfoVO getUserInfo(Integer userId);

    void logout(Integer userId);

    UserVO getDetailInfo(Integer userId);

    void updateUserInfo(UserDTO userDTO);

    void updatePassword(Integer userId, PasswordDTO passwordDTO);
}
